package com.qys.livesMall.financial.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class FinancialOnlineRecordVO {

    @Schema(description = "理财明细ID")
    private Long id;

    @Schema(description = "理财名称")
    private String name;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "理财产品id")
    private Long onlineFinancialId;

    @Schema(description = "本金")
    private BigDecimal amount;

    @Schema(description = "利率")
    private BigDecimal interestRate;

    @Schema(description = "收益周期（天数）")
    private Integer period;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+0")
    private LocalDateTime createTime;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+0")
    private LocalDateTime settlementTime;

    @Schema(description = "总收益")
    private BigDecimal totalAmount;

    @Schema(description = "状态： 1：未结算  2：已结算")
    private Byte status;

}
